package com.example.petstoreservice.entity;

import lombok.Data;
import lombok.Getter;

@Getter
public enum ResultType {
    SUCCESS("200","操作成功"),
    FAIL("400","操作失败"),
    UNAUTHORIZED("401","权限不足"),
    NOT_FOUND("404","数据不存在"),
    INTERNAL_SERVER_ERROR("500","服务器内部错误"),
    AGAIN_LOGIN("600","请重新登录");
    private String code;
    private String name;
    public void  setCode(String code)
    {
        this.code=code;
    }
    public void  setName(String name)
    {
        this.name=name;
    }

    ResultType(String code, String name) {
        this.code=code;
        this.name=name;
    }
}
